:root {
    --theme-color: #1890ff;
    --theme-light: #e6f7ff;
    --theme-dark: #096dd9;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}

/* 密码验证层样式 */
.password-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
    max-width: 320px;
}

.password-box h2 {
    color: #333;
    margin-bottom: 20px;
}

.password-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 16px;
}

.password-box button {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.password-box button:hover {
    background: var(--theme-dark);
}

/* 上传界面样式 */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: var(--theme-color);
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin: 0;
}

.upload-area {
    border: 2px dashed var(--theme-color);
    padding: 40px 20px;
    text-align: center;
    background: var(--theme-light);
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    background: #f0f9ff;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.upload-text {
    color: #666;
    margin: 0;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #eee;
}

.progress-bar {
    height: 100%;
    background: var(--theme-color);
    width: 0;
    transition: width 0.3s;
}

.upload-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .upload-container {
        padding: 15px;
    }
    
    .preview-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
} 